package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 ********************************************************
 * 阿里云oss系统配置类
 * @author zhangjialian
 * @Date 2018-09-03 10:21
 * @Version V1.0
 ********************************************************/
@Component
@DisconfFile(targetDirPath = "disconf", filename = "aliyunOss.properties")
public class OssClientProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
    private String tempPath;
    @DisconfFileItem(name = "oss.endpoint", associateField = "endpoint")
    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }
    @DisconfFileItem(name = "oss.accessKeyId", associateField = "accessKeyId")
    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }
    @DisconfFileItem(name = "oss.accessKeySecret", associateField = "accessKeySecret")
    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }
    @DisconfFileItem(name = "oss.strategy.file.path.bucketName", associateField = "bucketName")
    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }
    @DisconfFileItem(name = "oss.local.tempPath", associateField = "tempPath")
    public String getTempPath() {
        return tempPath;
    }

    public void setTempPath(String tempPath) {
        this.tempPath = tempPath;
    }
}
